package com.rchat.pocmini.activity.changepwd;

import com.aso.common.http.delegate.HttpCallbackImpl;
import com.rchat.pocmini.common.mvp.BaseModel;
import com.rchat.pocmini.common.mvp.BasePresenter;
import com.rchat.pocmini.common.mvp.BaseView;

/**
 * Created by ljd on 2017/8/31.
 */

public interface ChangePwdContract {

    interface View extends BaseView {
        void showPb(boolean show);
    }

    abstract class Presenter extends BasePresenter<ChangePwdContract.View, ChangePwdContract.Model> {
        /**
         * 修改密码
         *
         * @param oldPwd
         * @param newPwd
         * @param newPwdConfirm
         */
        abstract void changePwd(String oldPwd, String newPwd, String newPwdConfirm);
    }

    interface Model extends BaseModel {
        /**
         * 修改密码
         *
         * @param userName
         * @param newPassword
         * @param oldPassword
         * @param callback
         */
        void changePwd(String userName, String newPassword, String oldPassword, HttpCallbackImpl callback);

    }
}
